import request from "@/utils/request";

// 获取地图数据
export const getBaseMap = (params: any) => {
  return request({
    url: "/screen/secondHouse/getBaseMap",
    method: "get",
    params: params,
  });
};

// 获取当前code下区域列表
export const getRegionList = (params: any) => {
  return request({
    url: "/screen/houseLease/getRegionList",
    method: "get",
    params: params,
  });
};

// 开发建设 左图1 开发投资
export const getDevelopInvestment = (params: any) => {
  return request({
    url: "/screen/marketmonitor/getDevelopInvestment",
    method: "post",
    data: params,
  });
};

// 开发建设 左图1 新开工面积
export const getDevelopNewlyStarted = (params: any) => {
  return request({
    url: "/screen/marketmonitor/getDevelopNewlyStarted",
    method: "post",
    data: params,
  });
};
// 商品房交易 右图2 新建商品房销售金额
export const getHouseSalesAmount = (params: any) => {
  return request({
    url: "/screen/marketmonitor/getHouseSalesAmount",
    method: "post",
    data: params,
  });
};

// 商品房交易 右图2 新建商品房销售面积
export const getHouseSalesArea = (params: any) => {
  return request({
    url: "/screen/marketmonitor/getHouseSalesArea",
    method: "post",
    data: params,
  });
};

// 土地供应 左图2 土地出让金
export const getLandTransferFee = (params: any) => {
  return request({
    url: "/screen/marketmonitor/getLandTransferFee",
    method: "post",
    data: params,
  });
};

// 商品房交易 中图1 保交房情况
export const getBjfDetails = (params: any) => {
  return request({
    url: "/screen/marketmonitor/getBjfDetails",
    method: "post",
    data: params,
  });
};

// 商品房交易 中图2 停缓建情况
export const getThjDetails = (params: any) => {
  return request({
    url: "/screen/marketmonitor/getThjDetails",
    method: "post",
    data: params,
  });
};
